% Exercise 7
% Michael Sieber, Philipp Rusch

clf();
hold on

my = 5;
[y, sigma_dyn, fitness_dyn, generations] = slash_comma_sa_es_intermediate(my, my, 10, 100, 'Kugelmodell', 1, 10^-5);
semilogy(generations, fitness_dyn, '1');

my = 6;
[y, sigma_dyn, fitness_dyn, generations] = slash_comma_sa_es_intermediate(my, my, 10, 100, 'Kugelmodell', 1, 10^-5);
semilogy(generations, fitness_dyn, '2');

my = 7;
[y, sigma_dyn, fitness_dyn, generations] = slash_comma_sa_es_intermediate(my, my, 10, 100, 'Kugelmodell', 1, 10^-5);
semilogy(generations, fitness_dyn, '3');

my = 8;
[y, sigma_dyn, fitness_dyn, generations] = slash_comma_sa_es_intermediate(my, my, 10, 100, 'Kugelmodell', 1, 10^-5);
semilogy(generations, fitness_dyn, '4');

% plot labels
title("F-Dynamik fuer verschiedene mu");
legend("mu=5", "mu=6", "mu=7", "mu=8");
legend('boxon');
legend('Location', 'northeast');
ylabel("Sigma");
xlabel("Generations");

hold off